package com.xjtu.chapter05.ex5_1;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/16 9:35
 */
public interface Driver {
    int age = 30;//常量
    void driveTest();
    void  driveCar(String name);
    //JDK8对接口声明进行了补充，允许包含默认方法和静态方法
    default String required(){
        return "default implementation";
    }
    static String route(){
        return "a static function is defined";
    }
}
